package com.lst.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import com.lst.tools.mybatis.entity.DeleteBaseModel;

/**
 * 贷款产品表
 *
 * @author Frank
 * @date 2019-12-30 10:31:37
 * @version: V1.0
 */
@Data
@NoArgsConstructor
@TableName(value = "lst_product")
@ApiModel(value = "贷款产品表")
public class Product extends DeleteBaseModel {

    public static final String TITLE = "title";
    public static final String DETAILS = "details";
    public static final String MAX_QUOTA = "max_quota";
    public static final String YEARS = "years";
    public static final String LOAN_RATE = "loan_rate";
    public static final String TAX_LEVEL = "tax_level";
    public static final String LOAN_BANK_ID = "loan_bank_id";
    public static final String CREATE_USER_ID = "create_user_id";
    public static final String UPDATE_USER_ID = "update_user_id";

    @ApiModelProperty(name = "title", value = "标题,产品名称", dataType = "String")
    @TableField(value = TITLE)
    private String title;

    @ApiModelProperty(name = "details", value = "产品内容", dataType = "String")
    @TableField(value = DETAILS)
    private String details;

    @ApiModelProperty(name = "maxQuota", value = "最大额度，单位万元", dataType = "Integer")
    @TableField(value = MAX_QUOTA)
    private Integer maxQuota;

    @ApiModelProperty(name = "years", value = "贷款年限", dataType = "Integer")
    @TableField(value = YEARS)
    private Integer years;

    @ApiModelProperty(name = "loanRate", value = "贷款利率", dataType = "Double")
    @TableField(value = LOAN_RATE)
    private Double loanRate;

    @ApiModelProperty(name = "taxLevel", value = "税务等级，多个的话逗号隔开", dataType = "String")
    @TableField(value = TAX_LEVEL)
    private String taxLevel;

    @ApiModelProperty(name = "loanBankId", value = "贷款银行id", dataType = "Long")
    @TableField(value = LOAN_BANK_ID)
    private Long loanBankId;

    @ApiModelProperty(name = "createUserId", value = "创建者用户id", dataType = "Long")
    @TableField(value = CREATE_USER_ID)
    private Long createUserId;

    @ApiModelProperty(name = "updateUserId", value = "更新者用户id", dataType = "Long")
    @TableField(value = UPDATE_USER_ID)
    private Long updateUserId;


}